// -----------------------------
// Author: 		Dhaenens Gert 
// Creation: 	12/12/2014 9:28:56 PM				
// -----------------------------

#ifndef _Mutex_h
#define _Mutex_h

#include "Common.h"

class Mutex
{
public:
	Mutex();
	~Mutex();

	Bool	Init(const TChar* lpName = nullptr);
	Bool	TryEnter(Int32 TimeOut) const;
	Bool	Leave() const;

private:

	HANDLE	m_hMutex;

	Mutex(const Mutex& refMutex);
	Mutex& operator=(const Mutex& refMutex);
};

#endif